package com.power.sifa.netlogin.dao;

import com.power.sifa.netlogin.model.Net_user;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 申诉端登录用户实体 持久层(hibernate)
 */

public interface Net_userDao extends JpaRepository<Net_user, Serializable>, JpaSpecificationExecutor<Net_user>, Repository<Net_user, Serializable>, Net_userDaoCustom<Net_user, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Net_user s where  s.userid in (:ids) ")
   void removeByIds(@Param("ids") List<String> ids);
}
